package com.mstore.service;

import com.mstore.dao.ScoreDeleteLogDao;
import com.mstore.pojo.ScoreDeleteLog;
/**
 * 
 * 积分误操作，删除记录
 *
 */
public class ScoreDeleteLogService {
	private ScoreDeleteLogDao scoreDeleteLogDao;
	/**
	 * 
	 * 添加积分误操作记录
	 */
	public void save(ScoreDeleteLog scoreDeleteLog){
		 scoreDeleteLogDao.save(scoreDeleteLog);
	}
	/**
	 * 
	 *查找单个积分误操作记录
	 */
	public ScoreDeleteLog findById(ScoreDeleteLog scoreDeleteLog){
		ScoreDeleteLog b =(ScoreDeleteLog) scoreDeleteLogDao.findById(scoreDeleteLog);
		b.setCreateTime(b.getCreateTime().substring(0,b.getCreateTime().indexOf(".")));
			return b;
	}
	public ScoreDeleteLogDao getScoreDeleteLogDao() {
		return scoreDeleteLogDao;
	}
	public void setScoreDeleteLogDao(ScoreDeleteLogDao scoreDeleteLogDao) {
		this.scoreDeleteLogDao = scoreDeleteLogDao;
	}
	
}
